package com.flyco.modules.stm.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.flyco.modules.stm.entity.StmTransferItem;
import com.flyco.modules.stm.mapper.StmTransferItemMapper;
import com.flyco.modules.stm.service.IStmTransferItemService;
import com.flyco.modules.stm.vo.StmPrintVO;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @Description: 门店调拨单明细
 * @Author: flyco
 * @Date:   2020-10-30
 * @Version: V1.0
 */
@DS("store")
@Service
public class StmTransferItemServiceImpl extends ServiceImpl<StmTransferItemMapper, StmTransferItem> implements IStmTransferItemService {
	
	@Autowired
	private StmTransferItemMapper stmTransferItemMapper;
	
	@Override
	public List<StmTransferItem> selectByMainId(Long mainId) {
		return stmTransferItemMapper.selectByMainId(mainId);
	}

	@Override
	public List<StmPrintVO> getTransferItemForPrint(Long mainId, Date createTime) {
		return stmTransferItemMapper.getTransferItemForPrint(mainId, createTime);
	}

	/*@Override
	public Page<StmTransferItem> getTransferItemProductPage(Page<StmTransferItem> page, Wrapper<StmTransferItem> wrapper) {
		return page.setRecords(stmTransferItemMapper.getTransferItemProductPage(page, wrapper));
	}*/
}
